package com.jade.store.wechat.biz.protocol.menu;

import com.fasterxml.jackson.annotation.JsonProperty;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: jinya
 * Date: 2016/12/31
 * Time: 17:43
 * TEL :17701640710   MAIL:2009_jinya@163.com
 * To change this template use File | Settings | File Templates.
 */
public class MenuCreateReq {
    private Button[] button;

    public Button[] getButton()
    {
        return button;
    }

    public void setButton(Button[] button)
    {
        this.button = button;
    }

    public static class Button
    {
        public static final String TYPE_CLICK = "click";
        public static final String TYPE_VIEW = "view";
        private String type;
        private String name;
        private String key;
        private String url;
        @JsonProperty("sub_button")
        private List<Button> sub_button;

        public String getType()
        {
            return type;
        }

        public void setType(String type)
        {
            this.type = type;
        }

        public String getName()
        {
            return name;
        }

        public void setName(String name)
        {
            this.name = name;
        }

        public String getKey()
        {
            return key;
        }

        public void setKey(String key)
        {
            this.key = key;
        }

        public String getUrl()
        {
            return url;
        }

        public void setUrl(String url)
        {
            this.url = url;
        }

        public List<Button> getSub_button() {
            return sub_button;
        }

        public void setSub_button(List<Button> sub_button) {
            this.sub_button = sub_button;
        }
    }
}
